package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
public class AttributeTemplateInsertParam implements Serializable {
    @NotNull(message = "添加失败，属性模版名称不能为空！")
    @ApiModelProperty(value = "属性模版名称",required = true,example = "坤坤的属性模版")
    private String name;
    @NotNull(message = "添加失败，属性模版拼音不能为空！")
    @ApiModelProperty(value = "属性模版拼音",required = true,example = "pinyin")
    private String pinyin;
    @NotNull(message = "添加失败，属性模版关键词不能为空！")
    @ApiModelProperty(value = "属性模版关键词",required = true,example = "坤坤的属性模版关键词")
    private String keywords;
    @NotNull(message = "添加失败，排序序号不能为空！")
    @ApiModelProperty(value = "排序序号",required = true,example = "66")
    private Integer sort;
}
